﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TinyContactManager.Web.Internal.Entities
{
    public class Contact
    {
        public Contact()
        {
            Active = true;
        }

        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public bool Active { get; set; }

        public DateTime DateOfBirth { get; set; }

        public string Email { get; set; }
        public string Telephone { get; set; }
        public Address PostalAddress { get; set; }

        public string Comments { get; set; }
        public ICollection<Mailing> Mailings { get; set; }

        [Timestamp]
        public Byte[] Timestamp { get; set; }
    }
}